package com.itheima.day4.Test4;

import java.util.Scanner;

public class RemoteControl extends TV{
    public void controlTV(TV tv){
        Scanner sc=new Scanner(System.in);
        System.out.println("遥控器控制电视");
        System.out.println("请输入一个电视节目");
        String channel = sc.next();
        tv.play(channel);
    }

}
